#ifndef PROTOCOL_H__
#define PROTOCOL_H__


#define PATHSIZE	1024
#define DATASIZE	1024

#define FILEPATH	"/tmp/out"

enum TYPE{
	MSG_PATH = 1,
	MSG_DATA,
	MSG_EOT,
};

typedef struct msg_path_st{
	long mytype;
	char path[PATHSIZE];
}msg_path_t;

typedef struct msg_data_st{
	long mytype;
	char data[DATASIZE];
	int datalen;
}msg_data_t;

typedef struct msg_eot_st{
	long mytype;
}msg_eot_t;

union msg_s2c_un{
	long mytype;
	msg_path_t pathmsg;
	msg_data_t datamsg;
	msg_eot_t eotmsg;
};



#endif